package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.MerchantAccountRecordDao;
import com.platform.entity.MerchantAccountRecordEntity;
import com.platform.service.MerchantAccountRecordService;

/**
 * 商家金额记录Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-07-29 17:43:08
 */
@Service("merchantAccountRecordService")
public class MerchantAccountRecordServiceImpl implements MerchantAccountRecordService {
    @Autowired
    private MerchantAccountRecordDao merchantAccountRecordDao;

    @Override
    public MerchantAccountRecordEntity queryObject(Long id) {
        return merchantAccountRecordDao.queryObject(id);
    }

    @Override
    public List<MerchantAccountRecordEntity> queryList(Map<String, Object> map) {
        return merchantAccountRecordDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return merchantAccountRecordDao.queryTotal(map);
    }

    @Override
    public int save(MerchantAccountRecordEntity merchantAccountRecord) {
        return merchantAccountRecordDao.save(merchantAccountRecord);
    }

    @Override
    public int update(MerchantAccountRecordEntity merchantAccountRecord) {
        return merchantAccountRecordDao.update(merchantAccountRecord);
    }

    @Override
    public int delete(Long id) {
        return merchantAccountRecordDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return merchantAccountRecordDao.deleteBatch(ids);
    }
}
